import { Charts } from '@jiaminghi/data-view-react';
import chartStyle from './chartStyle.module.css';
function LeftCenterChart() {
    const option = {
        title: {
            text: '畅销饮料占比饼状图',
            style: {
                fill: '#fff'
            }
        },
        series: [
            {
                type: 'pie',
                data: [
                    { name: '可口可乐', value: 93 },
                    { name: '百事可乐', value: 32 },
                    { name: '哇哈哈', value: 65 },
                    { name: '康师傅', value: 44 },
                    { name: '统一', value: 52 },
                ],
                insideLabel: {
                    show: true
                }
            }
        ]
    }
    return (
        <div className={chartStyle.chart_con}>
            <Charts option={option} />
        </div>
    )
}
export default LeftCenterChart;